package com.yunduo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ChengXin
 * @since 2023-08-25
 */
@TableName("y_pay")
@Data
public class Pay implements Serializable {

    private static final long serialVersionUID = 1L;
    //支付ID
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;


    /**
     * 订单id
     */
    private String orderId;

    private String userId;

    private String money;

    /**
     * 订单收货信息
     */
    private String intable;
    /**
     * 0网络支付 1到付
     */
    private String payType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT) // 在插入时自动更新数据
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时更新数据
    private LocalDateTime gmtModified;
}
